#ifndef PROTREEWIDGETITEM_H
#define PROTREEWIDGETITEM_H
#include <QTreeWidgetItem>
#include <QTreeWidget>

class ProTreeWidgetItem : public QTreeWidgetItem
{

public:
    ProTreeWidgetItem(QTreeWidget *treeview,const QString& name,
                      const QString& path, int type = Type);
    ProTreeWidgetItem(QTreeWidgetItem *parent,const QString& name,
                      const QString& path,QTreeWidgetItem* root, int type = Type);

    QString GetPath();
    QTreeWidgetItem* GetPreItem();
    QTreeWidgetItem* GetRootItem();
    QTreeWidgetItem* GetNextItem();
    void SetPreItem(QTreeWidgetItem* pre_item);
    void SetNextItem(QTreeWidgetItem* next_item);


private:
    QString _name;
    QString _path;
    QTreeWidgetItem* _root_item;
    QTreeWidgetItem* _pre_item;
    QTreeWidgetItem* _next_item;

};

#endif // PROTREEWIDGETITEM_H
